import ReactDOM from 'react-dom/client'
import { Provider } from 'react-redux'
// 注意： 应该先导入 store（创建store），然后，再导入 App 组件
import store from './store'

import './index.scss'

import App from './App'

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
root.render(
  <Provider store={store}>
    <App />
  </Provider>
)
